import http from "./http";


export const listLoops = (_page, _size) => {
    return http.requestGet("/admin/looper/list?page=" + _page + "&size=" + _size);
};

export const deleteLooper = (_id) => {
    return http.requestDelete("/admin/looper/" + _id);
}

export const postLooper = (_looper) => {
    return http.requestPost("/admin/looper", _looper);
}

export const putLooper = (_looper) => {
    return http.requestPut("/admin/looper/" + _looper.id, _looper);
}